﻿using PrismDemo01.DAL;
using PrismDemo01.IDAL;
using PrismDemo01.Views;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Windows;

namespace PrismDemo01
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        #region 必须要有这两个方法才行
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.Register<ILocalDataAccess, DataAccess>();
        } 
        #endregion
    }
}
